package com.sgb.goods.utils;

/**
 * 常量
 *
 * @author cyj
 */
public class Constants {

    /**
     * 已超过签署截止日期\n合同已失效！
     */
    public final static String NET_BSS_ERROR_CODE_539101 = "539101";

    /**
     * 元符号
     */
    public final static String C_MONEY = "￥";

    /**
     * 竖线分割符号
     */
    public final static String C_VERTICAL_SEPARATOR = "\\|";

    //---------------- 公共 -------------------
    /**
     * 页数
     */
    public final static int PAGE_NUM = 1;
    /**
     * 每页数量 10
     */
    public final static int PAGE_SIZE_10 = 10;
    /**
     * 每页数量 20
     */
    public final static int PAGE_SIZE_20 = 20;
    //---------------- 公共 -------------------

    // 商品管理商品的状态
    /** 操作状态：上架 */
    public static final String GOODS_OPT_UP = "1";
    /** 操作状态：下架 */
    public static final String GOODS_OPT_DOWN = "2";
    /** 操作状态：删除 */
    public static final String GOODS_OPT_DEL = "3";

    /**
     * 商品组件 ARouter 配置
     * 注意：某些页面需要传入多个参数，ARouter调用并不方面使用配置，因此在 ARouter 自定义的 path 字符文档注释里定义标注页面传参。
     */
    public static class ARouter {

        /**
         * activity根目录
         */
        private final static String ACTIVITY_ROOT = "/goods/view/activity";

        /**
         * 采购订单列表
         *
         * @see com.sgb.goods.view.activity.PurchaseOrderListActivity
         */
        public final static String AR_PURCHASE_ORDER_LIST = ACTIVITY_ROOT + "/PurchaseOrderListActivity";

        /**
         * 销售订单列表
         *
         * @see com.sgb.goods.view.activity.SellOrderListActivity
         */
        public final static String AR_SELL_ORDER_LIST = ACTIVITY_ROOT + "/SellOrderListActivity";

        /**
         * pdf预览
         *
         * @see com.sgb.goods.view.activity.PdfReaderActivity
         */
        public final static String AR_PREVIEW = ACTIVITY_ROOT + "/PdfReaderActivity";

        /**
         * 支付详情列表
         *
         * @see com.sgb.goods.view.activity.details.order.PayInformationActivity
         */
        public final static String AR_PAY_INFORMATION = ACTIVITY_ROOT + "/PayInformationActivity";

        /**
         * 物流约定
         *
         * @see com.sgb.goods.view.activity.details.order.LogisticsAgreementActivity
         */
        public final static String AR_LOGISTICS_AGREEMENT = ACTIVITY_ROOT + "/LogisticsAgreementActivity";
        /**
         * 开票详情
         *
         * @see com.sgb.goods.view.activity.details.order.InvoiceDetailsActivity
         */
        public final static String AR_INVOICE_DETAIL = ACTIVITY_ROOT + "/InvoiceDetailsActivity";

        /**
         * 我的询价
         *
         * @see com.sgb.goods.view.activity.inquiry.MyInquiryActivity
         */
        public final static String PERSONAL_MY_INQUIRY = ACTIVITY_ROOT + "/MyInquiryActivity";
        /**
         * 新增采购品
         *
         * @see com.sgb.goods.view.activity.inquiry.NewPurchasesActivity
         */
        public final static String AR_INQUIRY_NEW_PURCHASES = ACTIVITY_ROOT + "/NewPurchasesActivity";
        /**
         * 询价发布（编辑）
         *
         * @see com.sgb.goods.view.activity.inquiry.InquiryPublishingActivity
         */
        public final static String AR_INQUIRY_PUBLISHING = ACTIVITY_ROOT + "/InquiryPublishingActivity";

        /**
         * 询价发布-选择供应商
         *
         * @see com.sgb.goods.view.activity.inquiry.FindInquirySupplierActivity
         */
        public final static String AR_FIND_INQUIRY_SUPPLIER = ACTIVITY_ROOT + "/FindInquirySupplierActivity";

        /**
         * 询价发布、商品发布（添加品牌）
         *
         * @see com.sgb.goods.view.activity.AddGoodsBrandActivity
         */
        public final static String AR_ADD_GOODS_BRAND = ACTIVITY_ROOT + "/AddGoodsBrandActivity";

        /**
         * 采购商要求
         *
         * @see com.sgb.goods.view.activity.details.order.TradingContractActivity
         */
        public final static String AR_TRADING_CONTRACT = ACTIVITY_ROOT + "/TradingContractActivity";

        /**
         * 采购订单详情
         *
         * @see com.sgb.goods.view.activity.details.order.PurchaseOrderDetailsActivity
         * 参数：
         * orderId：订单号
         */
        public final static String AR_PURCHASE_ORDER_DETAILS = ACTIVITY_ROOT + "/PurchaseOrderDetailsActivity";

        /**
         * 采购订单详情
         *
         * @see com.sgb.goods.view.activity.details.order.SellOrderDetailsActivity
         * 参数：
         * orderId：订单号
         */
        public final static String AR_SELL_ORDER_DETAILS = ACTIVITY_ROOT + "/SellOrderDetailsActivity";

        /**
         * 合同列表
         *
         * @see com.sgb.goods.view.activity.details.order.ContractListActivity
         */
        public final static String AR_CONTRACT_LIST = ACTIVITY_ROOT + "/ContractListActivity";

        /**
         * 约定信息
         *
         * @see com.sgb.goods.view.activity.details.order.AppointInfoActivity
         */
        public final static String AR_APPOINT_INFO = ACTIVITY_ROOT + "/AppointInfoActivity";

        /**
         * 收货详情
         *
         * @see com.sgb.goods.view.activity.details.order.ReceiptGoodsDetailsActivity
         */
        public final static String AR_RECEIPT_GOODS_DEL = ACTIVITY_ROOT + "/ReceiptGoodsDetailsActivity";

        /**
         * 收货详情
         *
         * @see com.sgb.goods.view.activity.BrandManagerActivity
         */
        public final static String AR_BRAND_MANAGER = ACTIVITY_ROOT + "/BrandManagerActivity";

        /**
         * 添加品牌 、 编辑品牌
         *
         * @see com.sgb.goods.view.activity.AddBrandActivity
         */
        public final static String AR_ADD_BRAND = ACTIVITY_ROOT + "/AddBrandActivity";

        /**
         * 我的报价列表
         *
         * @see com.sgb.goods.view.activity.ShopMyPriceActivity
         */
        public final static String AR_SHOP_MY_PRICE = ACTIVITY_ROOT + "/ShopMyPriceActivity";

        /**
         * 仓储管理
         *
         * @see com.sgb.goods.view.activity.StorageManageActivity
         */
        public final static String AR_STORAGE_MANAGER = ACTIVITY_ROOT + "/StorageManageActivity";

        /**
         * 商品发布
         *
         * @see com.sgb.goods.view.activity.GoodsPublishActivity
         */
        public final static String AR_GOODS_PUBLISH = ACTIVITY_ROOT + "/GoodsPublishActivity";

        /**
         * 网络相册选择
         *
         * @see com.sgb.goods.view.activity.GoodsAlbumActivity
         */
        public final static String AR_GOODS_ALBUM = ACTIVITY_ROOT + "/GoodsAlbumActivity";

        /**
         * 添加仓储
         *
         * @see com.sgb.goods.view.activity.GoodsAddStorageActivity
         */
        public final static String AR_ADD_STORAGE = ACTIVITY_ROOT + "/GoodsAddStorageActivity";

        /**
         * 会员价列表
         *
         * @see com.sgb.goods.view.activity.vpm.VipPriceManageActivity
         */
        public final static String AR_VIP_PRICE_MANAGE = ACTIVITY_ROOT + "/VipPriceManageActivity";

        /**
         * 选择会员价商品
         *
         * @see com.sgb.goods.view.activity.vpm.ChoiceVipPriceGoodsActivity
         */
        public final static String AR_CHOICE_VIP_PRICE_GOODS = ACTIVITY_ROOT + "/ChoiceVipPriceGoodsActivity";

        /**
         * 新增会员报价
         *
         * @see com.sgb.goods.view.activity.vpm.AddMemberGoodsActivity
         */
        public final static String AR_ADD_MEMBER_GOODS = ACTIVITY_ROOT + "/AddMemberGoodsActivity";

        /**
         * 会员价详情
         *
         * @see com.sgb.goods.view.activity.vpm.MemberPriceDetailsActivity
         */
        public final static String AR_MEMBER_PRICE_DETAILS = ACTIVITY_ROOT + "/MemberPriceDetailsActivity";

        /**
         * 会员价操作记录
         *
         * @see com.sgb.goods.view.activity.vpm.OperationRecordActivity
         */
        public final static String AR_OPERATION_RECORD = ACTIVITY_ROOT + "/OperationRecordActivity";

        /**
         * 商品管理列表
         *
         * @see com.sgb.goods.view.activity.GoodsManageListActivity
         */
        public final static String AR_GOODS_MANAGE_LIST = ACTIVITY_ROOT + "/GoodsManageListActivity";

        /**
         * 商品发布-重构版
         *
         * @see com.sgb.goods.view.activity.GoodsPublishActivity2
         */
        public final static String AR_GOODS_PUBLISH_2 = ACTIVITY_ROOT + "/GoodsPublishActivity2";

        /**
         * 选择规格界面
         *
         * @see com.sgb.goods.view.activity.GoodsSpecActivity
         */
        public final static String AR_GOODS_SPEC = ACTIVITY_ROOT + "/GoodsSpecActivity";
    }

    public static final class GoodsEvent {
        public final static int EVENT_CODE_PRICE_CHECK = 0x11;
        public final static int EVENT_BRAND_ADD = 0x12;
    }
}
